<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Servlet URL匹配规则</title>
</head>
<body>
<h1>Servlet URL匹配规则</h1>
<hr>

<br/>
<div>
    <div>精确匹配</div>
    <a href="hello">HelloServlet</a><br/>
    <a href="haha">HelloServlet</a><br/>
    <a href="hehe">HelloServlet</a><br/>

    <div>目录匹配</div>
    <a href="test/hello">TestServlet</a><br/>
    <a href="test/abc">TestServlet</a><br/>
    <a href="test/abc.action">TestServlet</a><br/>

    <div>扩展名匹配</div>
    <a href="test/hello.action">ActionServlet</a><br/>
    <a href="abc/hello.action">ActionServlet</a><br/>
    <a href="abc/efg/test.action">ActionServlet</a><br/>

    <div>默认匹配</div>
    <a href="abc/welcome.do">ActionServlet</a><br/>


</div>

</body>
</html>